package hn.cch;


import hn.cch.quartz.QuartzJobManager;
import hn.cch.spring.SpringAnnotation;
import hn.cch.spring.SpringConfiguration;

public class Main {
    public static void main(String[] args) {
        //spring
        SpringAnnotation.newBean(SpringConfiguration.class);

        //quartz
        QuartzJobManager quartzJobManager = SpringAnnotation.getBean(QuartzJobManager.class);
        // quartzJobManager.initJob();


        quartzJobManager.scheduleJob();

        // try {
        //     Thread.sleep(20 * 1000);
        // } catch (InterruptedException e) {
        //     e.printStackTrace();
        // }
        //
        // quartzJobManager.rescheduleJob();
    }
}
